package ai.peanut.selfbase.modules.office.dao;

import ai.peanut.selfbase.modules.office.entity.Office;
import ai.peanut.selfbase.modules.office.pojo.OfficeParams;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 机构表 Mapper 接口
 * </p>
 *
 * @author lichong
 * @since 2019-02-15
 */
public interface OfficeMapper extends BaseMapper<Office> {
    /**
     * 获取列表
     * @param param
     * @return
     */
    List<Office> selectAllByParams(OfficeParams param) ;


    int deleteCurrentAndChildren(OfficeParams param) ;
}
